<?php 
session_start();
session_destroy(); 
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
  <meta charset="utf-8">
  <title>SIRI | Sistema de Requerimentos</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link href="../css/bootstrap.min.css" rel="stylesheet">
  	<link rel="shortcut icon" href="../img/favicon.ico">
</head>

<body background="img/grid.png">
<br /><p class="text-center"><!--<a href="index.php"><img class="img-rounded" alt="SRD" title="SIRI | Sistema de Requerimentos" src="img/logo.png"></a>--></p><br />
<div class="container">
	<div class="row clearfix">
		<div class="col-md-4 column">
		</div>
		<div class="col-md-4 column">
			<div class="panel panel-success">
				<div class="panel-heading">
					<h3 class="panel-title">
						<span class="glyphicon glyphicon-lock"></span> <strong>Autenticação - SIRI</strong>
					</h3>
				</div>
				<div class="panel-body">
<!--<p class="text-center"><a href="index.php"><img class="img-circle" alt="SRD" title="SRD | Sistema de Registro de Diplomas" src="img/avatar.png"></a></p>-->
<?php
$msg = NULL;
if($_REQUEST['msg']) {   
   $msg = $_REQUEST['msg'];
   if($msg == "erro") {
   $has_error = "has-error";
      echo '<div class="alert alert-danger alert-dismissible" role="alert">
  <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Fechar</span></button>
  <strong><span class="glyphicon glyphicon-warning-sign"></span> Login e/ou senha incorreto(s)!</strong></div>';
   }
}
?>
			<form role="form" method="post" action="controle.php">
				<div class="form-group <?php echo $has_error; ?>">
					 <label for="inputLogin">Email</label>
					 <div class="input-group">
					 <div class="input-group-addon"><span class="glyphicon glyphicon-user"></span></div>
					 <input class="form-control" id="email" type="email" name="email" maxlength="50" value="" autofocus>
					 </div>
				</div>
				<div class="form-group <?php echo $has_error; ?>">
					 <label for="inputSenha">Senha</label>
					 <div class="input-group">
					 <div class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></div>
					 <input class="form-control" id="senha" type="password" name="senha" maxlength="50">
					 </div>
				</div>
				<p class="text-center"><button type="submit" class="btn btn-success" id="acao" value="logar" name="acao" value="Entrar">Entrar</button></p>
			</form>
				</div>
				
				<div class="panel-footer">
					<small><p class="text-right text-muted">Desenvolvido pela <a href="http://www.ifsertao-pe.edu.br/dgti" target="_blank" title="Coordenação de Tecnologia da Informação">CTI</a></p></small>
				</div>
				</div>
			</div>
		</div>
		<div class="col-md-4 column">
		
		</div>
	</div>
</div>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
</body>
</html>
